import request from '@/utils/request'

// 查询房间实例列表
export function listRoomInstance(query) {
  return request({
    url: '/manage/roomInstance/list',
    method: 'get',
    params: query
  })
}

// 查询房间实例详细
export function getRoomInstance(roomInstanceId) {
  return request({
    url: '/manage/roomInstance/' + roomInstanceId,
    method: 'get'
  })
}

// 新增房间实例
export function addRoomInstance(data) {
  return request({
    url: '/manage/roomInstance',
    method: 'post',
    data: data
  })
}

// 修改房间实例
export function updateRoomInstance(data) {
  return request({
    url: '/manage/roomInstance',
    method: 'put',
    data: data
  })
}

// 删除房间实例
export function delRoomInstance(roomInstanceId) {
  return request({
    url: '/manage/roomInstance/' + roomInstanceId,
    method: 'delete'
  })
}
